package com.yilin.tms.core.entity.data.monitor;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="data_tms_data_sync")
@TableName(value = "data_tms_data_sync")
public class TmsDataSync extends BaseEntity {
    public enum SyncStatus {
        transfer(2, "数据已转移"),
        sendSuccess(3, "提交成功"),
        sendFail(4, "提交失败");
        @EnumValue
        public Integer index;
        public String name;

        SyncStatus(Integer index, String name) {
            this.index = index;
            this.name = name;
        }
    }

    @Column(name = "plat_id")
    private String platId;//平台唯一ID
    @Column(name = "plat_name")
    private String platName;//平台名称

    @Column(name="status")
    private SyncStatus status;//数据状态
    @Column(name="tms_data_id")
    private String tmsDataId;
    @Column(name="identification")
    private String identification;//数据唯一标识
    @Column(name="document_name")
    private String documentName;//文档名称


    public String getDocumentName() {
        return documentName;
    }

    public void setDocumentName(String documentName) {
        this.documentName = documentName;
    }

    public String getTmsDataId() {
        return tmsDataId;
    }

    public void setTmsDataId(String tmsDataId) {
        this.tmsDataId = tmsDataId;
    }

    public String getPlatId() {
        return platId;
    }

    public void setPlatId(String platId) {
        this.platId = platId;
    }

    public String getPlatName() {
        return platName;
    }

    public void setPlatName(String platName) {
        this.platName = platName;
    }

    public SyncStatus getStatus() {
        return status;
    }

    public void setStatus(SyncStatus status) {
        this.status = status;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }
}
